<form method="post" action="<?php the_permalink(); ?>" id="your-profile">

	<table class="form-table">

		<tr>
			<th scope="row"><label for="position"><?php _e( 'Position', 'wpsc_fs' ); ?>:</label></th>
			<td>
				<select name="position">
<?php
$output = '';
for( $i = 0; $i < count( $positions ); $i++ )
	$output .= '<option value="' . $positions[$i][0] . '"' . selected( $positions[$i][0], $position, false ) . '>' . $positions[$i][1] . '&nbsp;</option>';
echo $output; ?>
				</select>
			</td>
		</tr>

	</table>
	<p><?php _e( 'For manual positioning use the following PHP template tag within the Single Product template.', 'wpsc_fs' ); ?></p>
	<p><code><?php echo htmlentities2( '<?php if( function_exists( \'wpsc_the_facebook_share\' ) ) wpsc_the_facebook_share(); ?>' ); ?></code></p>

	<h3><?php _e( 'Presentation', 'wpsc_fs' ); ?></h3>
	<table class="form-table">

		<tr>
			<th scope="row"><label><?php _e( 'Products Page Visibility', 'wpsc_fs' ); ?>:</label></th>
			<td>
				<fieldset>
					<label><input type="radio" name="display_productspage" value="1"<?php if( $display_productspage == 1 ) { echo ' checked="checked"'; } ?> /> <?php _e( 'I would like to display Facebook Share on the Products Page', 'wpsc_fs' ); ?></label><br />
					<label><input type="radio" name="display_productspage" value="0"<?php if( $display_productspage == 0 ) { echo ' checked="checked"'; } ?> /> <?php _e( 'I would like to hide Facebook Share on the Products Page', 'wpsc_fs' ); ?></label>
				</fieldset>
				<p class="description"><?php _e( 'Show or hide Facebook Share on the Products Page.', 'wpsc_fs' ); ?></p>
			</td>
		</tr>

		<tr>
			<th scope="row"><label><?php _e( 'Single Product Visibility', 'wpsc_fs' ); ?>:</label></th>
			<td>
				<fieldset>
					<label><input type="radio" name="display_singleproduct" value="1"<?php if( $display_singleproduct == 1 ) { echo ' checked="checked"'; } ?> /> <?php _e( 'I would like to display Facebook Share on the Product detail view', 'wpsc_fs' ); ?></label><br />
					<label><input type="radio" name="display_singleproduct" value="0"<?php if( $display_singleproduct == 0 ) { echo ' checked="checked"'; } ?> /> <?php _e( 'I would like to hide Facebook Share on the Product detail view', 'wpsc_fs' ); ?></label>
				</fieldset>
				<p class="description"><?php _e( 'Show or hide Facebook Share on the Product detail view.', 'wpsc_fs' ); ?></p>
			</td>
		</tr>

	</table>

	<p class="submit">
		<input type="submit" value="<?php _e( 'Save Changes', 'wpsc_fs' ); ?>" class="button-primary" />
	</p>
	<input type="hidden" name="action" value="update" />

</form>